package com.adnaan.backend.entity.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.List;

/**
 * author: adnaan
 * create: 2025-01-19 13:50
 * Description:
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)// 忽略null值
@Tag(name = "通用返回下拉列表")
public class OptionDto {

    @Schema(name = "下拉列表的label")
    private String label;

    @Schema(name = "下拉列表的值")
    private String value;

    @Schema(name = "下拉列表的子选项")
    private List<OptionDto> children;
}
